gtk: Remove gtk_snapshot_append()
authorBenjamin Otte <otte@redhat.com>
Sun, 11 Dec 2016 03:13:22 +0000 (04:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:09 +0000 (18:01 +0100)
It does not make sense to append an empty container node. Those should
only be push()'d.

docs/reference/gtk/gtk4-sections.txt
gtk/gtksnapshot.c
gtk/gtksnapshot.h

index 3b6ba53464ff9ab2bf201dc212cd33bed4e5500b..191363ae5dc9e36ef40e58061abe56250b3736a6 100644 (file)
@@ -4461,7 +4461,6 @@ gtk_snapshot_set_transform
 gtk_snapshot_transform
 gtk_snapshot_translate_2d
 gtk_snapshot_append_node
-gtk_snapshot_append
 gtk_snapshot_append_cairo_node
 gtk_snapshot_clips_rect
 gtk_snapshot_render_background
index 3a57d44ca079d86e272da015bdfb31ade8476b6a..803526bc56b078582f793bc8bfa2f38c93b1b341 100644 (file)
@@ -336,53 +336,6 @@ gtk_snapshot_append_node (GtkSnapshot   *snapshot,
     }
 }
 
-/**
- * gtk_snapshot_append:
- * @snapshot: a #GtkSnapshot
- * @bounds: the bounds for the new node
- * @name: (transfer none): a printf() style format string for the name for the new node
- * @...: arguments to insert into the format string
- *
- * Creates a new render node and appends it to the current render
- * node of @snapshot, without changing the current node.
- *
- * Since: 3.90
- *
- * Returns: (transfer full): the newly created #GskRenderNode
- */
-GskRenderNode *
-gtk_snapshot_append (GtkSnapshot           *snapshot,
-                     const graphene_rect_t *bounds,
-                     const char            *name,
-                     ...)
-{
-  GskRenderNode *node;
-
-  g_return_val_if_fail (snapshot != NULL, NULL);
-  g_return_val_if_fail (bounds != NULL, NULL);
-
-  node = gsk_renderer_create_render_node (snapshot->renderer);
-  gsk_render_node_set_bounds (node, bounds);
-
-  if (name)
-    {
-      va_list args;
-      char *str;
-
-      va_start (args, name);
-      str = g_strdup_vprintf (name, args);
-      va_end (args);
-
-      gsk_render_node_set_name (node, str);
-
-      g_free (str);
-    }
-
-  gtk_snapshot_append_node (snapshot, node);
-
-  return node;
-}
-
 /**
  * gtk_snapshot_append_cairo_node:
  * @snapshot: a #GtkSnapshot
index dbf8b76293ca4cc1a2cd7735ffee502eeafff6a8..d5201064ec1851b6b40a0db301321ba9d355197d 100644 (file)
@@ -65,11 +65,6 @@ GDK_AVAILABLE_IN_3_90
 void            gtk_snapshot_append_node                (GtkSnapshot            *snapshot,
                                                          GskRenderNode          *node);
 GDK_AVAILABLE_IN_3_90
-GskRenderNode * gtk_snapshot_append                     (GtkSnapshot            *snapshot,
-                                                         const graphene_rect_t  *bounds,
-                                                         const char             *name,
-                                                         ...) G_GNUC_PRINTF(3, 4);
-GDK_AVAILABLE_IN_3_90
 cairo_t *       gtk_snapshot_append_cairo_node          (GtkSnapshot            *snapshot,
                                                          const graphene_rect_t  *bounds,
                                                          const char             *name,